'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/books', controller.books.index);
  router.get('/addbooks', controller.books.add);
  router.get('/querybooks', controller.books.query);
  router.get('/chapter', controller.chapter.index);
  router.get('/addchapter', controller.chapter.add);
};
